'/
' RabNet (Rabid Networking)
' 
' This is a strimmed down BlitzMax port of RakNet. It is basically inspired
' by RakNet, but is very strimmed down, and a bunch of new additional
' features has been added, all written from scratch.
' 
' Copyright (c) 2003 Jenkins Software LLC.
' RabNet written 2010 by Anton Berlin.
' 
' =========================================================================
' 
' All new features is free to use in any way, as long as you inlude
' Anton Berlin (or Anthony Berlin) as the orinial writer of the code.
' 
' All old features are subject to the appropriate license agreement.
' Creative Commons Licensees are subject to the license found at
' http://creativecommons.org/licenses/by-nc/2.5/
' 
' Single application licensees are subject to the license found at
' http://www.jenkinssoftware.com/SingleApplicationLicense.html
' 
' Custom license users are subject to the terms therein.
' 
' GPL license users are subject to the GNU General Public
' License as published by the Free Software Foundation; either version 3
' of the License, or (at your option) any later version.
'/

'// RabNet socket.
type RabNetSocket

	'// -------------------------------------------------------------------------------------------------------------
	'// Destroy the socket.
	'// -------------------------------------------------------------------------------------------------------------
	method destroy()
	
		closeSocket(m_clientSocket);
		closeSocket(m_listeningSocket);
	
	end method
	
	'// -------------------------------------------------------------------------------------------------------------
	'// The client socket. This is the socket used to connect to listening sockets, and when sending messages between
	'// two systems.
	'// -------------------------------------------------------------------------------------------------------------
	field m_clientSocket:TSocket;
	
	'// -------------------------------------------------------------------------------------------------------------
	'// The listening socket. This is the socket we use to listen for, and accept, connections.
	'// -------------------------------------------------------------------------------------------------------------
	field m_listeningSocket:TSocket;

end type
